package com.jg.test.Hero;

import com.jg.test.Dice;
import com.jg.test.Monster.Monster;
import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;

@Getter
@Setter
public class Warrior extends Hero{
    private String name;
    private int hp;
    private int hpLimit;
    private boolean isLevelUp;
    private boolean isDead;

    public Warrior() {
        this.name = "战士";
        this.hp = 6;
        this.hpLimit = 6;
        this.isLevelUp = false;
    }

    public void assault(ArrayList<Dice> arrayList, Dice dice , Monster monster){
        int temp;
        arrayList.remove(dice);
        temp = monster.getHealth();
        monster.setHealth(temp -1);
    }
}
